
#ifndef JPGIMAGE_H
#define JPGIMAGE_H

#ifdef USE_JPEG_LIB

/**
 * An ImageFile subclass for reading JPG files.<p>
 * This implementation needs libjpeg to read JFIF files.
 */
class CImageJpgFile : public CImageFile
{
  ///
  friend class CImageFile;	// For constructor

private:

public:

  /// Read the JPG file from the buffer.
  CImageJpgFile (const string& filename, const byte* buf, long size);

  ///
  virtual ~CImageJpgFile ();
};

#endif

#endif //JPGIMAGE_H

